﻿var smallDialog;
var mediumDialog;
var largeDialog;

//My JQuery Alert Extend
$.extend($.fn, {
    smallAlert: function (id, title, msg) {
        if (!smallDialog) {
            ZEUS.DEBUG.log("small dialog is null");
            smallDialog = new MySimpleDialog(id, title, msg, "small");
            smallDialog.Init();
        }

        smallDialog.Show();
    },
    mediumAlert: function (id, title, msg) {
        if (!mediumDialog) {
            ZEUS.DEBUG.log("medium dialog is null");
            mediumDialog = new MySimpleDialog(id, title, msg, "medium");
            mediumDialog.Init();
        }

        mediumDialog.Show();
    },
    largeAlert: function (id, title, msg) {
        if (!largeDialog) {
            ZEUS.DEBUG.log("large dialog is null");
            largeDialog = new MySimpleDialog(id, title, msg, "large");
            largeDialog.Init();
        }

        largeDialog.Show();
    }
});

